﻿using DataModels.Dto;
using Microsoft.AspNetCore.Mvc;
using Services.Vehicle;

namespace PropertyManagementWebApi.Controllers.Vehicle
{
    public class VehicleController(VehicleService vehicleService) : BaseController
    {
        protected readonly VehicleService _vehicleService = vehicleService;

        /// <summary>
        /// 获取车辆信息
        /// </summary>
        /// <param name="ProjectID"></param>
        /// <returns></returns>
        [HttpGet]
        public ResponseModel GetVehicleInfo(Guid ProjectID)
        {
            return _vehicleService.GetVehicleInfo(ProjectID);
        }
    }
}
